// 首页
import axios from '@/api/request/request'

// 所有
const typeAll = (option: any) => {
  return axios.get('/type/all', { ...option })
}

// 保存
const typeSave = (option: any) => {
  return axios.post('/type/save', { ...option })
}

// 删除
const typeDelete = (option: any) => {
  return axios.get('/type/delete', { ...option })
}

// 批量更新
const batchUpdate = (option: any) => {
  return axios.post('/type/batchUpdate', option)
}

export { typeAll, typeSave, typeDelete, batchUpdate }
